package com.codecrecord;

import android.graphics.SurfaceTexture;

/**
 * Created by android on 8/8/17.
 */

interface InterfaceRecord {
    void setVideoPath(String mVideoPath);

    void setRecordVoice(boolean mRecordVoice);

    void release();

    void setTexture(int texId, SurfaceTexture surfaceTexture);

    void setTextureSize(int width, int height);

    void newFrame();

    boolean isRecording();

    boolean init();

    int handleStartRecording(TextureMovieEncoder.OnVideoDone onVideoDone);

    void handleStopRecording();

    void setOnVideoDone(TextureMovieEncoder.OnVideoDone onVideoDone);
}
